#!/usr/bin/python

import biosignal

bs = biosignal.load("/home/zaca/Development/test/crisis2-old.edf")

print "signal time_period : ", bs.recording_time()
ss = bs.signal_slice( biosignal.TimeOffset_Seconds(0), biosignal.TimeOffset_Seconds(1) )
print "-----------------"

print "-----------------"
for df in ss:
	print " time : ", df.time()
	for sd in df:
		sd_text = "%8s : " % sd.signal_info().label()
		for d in sd:
			sd_text += "%6.2f " % d
		print sd_text
		

print "total time : %f" % bs.recording_time().duration().total_seconds();


